class CommentModel {
  final String comment_id;
  final String comment_detail;
  final String user_id;

  CommentModel({
    required this.comment_id,
    required this.comment_detail,
    required this.user_id,
  });

  factory CommentModel.fromJson(Map<String, dynamic> json) {
    return CommentModel(
      comment_id: json['commentId'] ?? '',
      comment_detail: json['commentDetail'] ?? '',
      user_id: json['userId'] ?? '',
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'commentId': comment_id,
      'commentDetail': comment_detail,
      'userId': user_id,
    };
  }

  @override
  String toString() {
    return 'CommentModel{comment_id: $comment_id, comment_detail: $comment_detail, user_id: $user_id}';
  }
}
